Method and system for reusing HTML content

ABSTRACT

Reusing HyperText Markup Language (HTML) content includes receiving, using a processor, a HyperText Transfer Protocol (HTTP) request; determining that the received HTTP request has a special parameter that specifies to request part of the HTML content; acquiring the part of the HTML content according to the special parameter; and outputting the acquired part of the HTML content.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims the benefit of China Application Number201110391155.9 filed on Nov. 30, 2011, which is fully incorporatedherein by reference.

BACKGROUND

When a developer is developing a web application, often there is a needto reuse existing resources. A widget is an example of such an existingresource. To enable existing resources to be reused by other web pages,it is necessary for a resource provider to provide a common applicationprogram interface (API) for resources so as to be used by the developer.However, for the resource provider, providing a common API takesadditional cost, therefore, in some cases, the resource provider oftendoes not provide a common API. In case the resource provider does notprovide a common API, it is difficult to reuse these resources.

BRIEF SUMMARY

According to an embodiment of the disclosure, there is provided a methodfor reusing HTML content. The method includes receiving a HyperTextTransfer Protocol (HTTP) request; determining, using a processor, thatthe received HTTP request has a special parameter that specifies torequest part of the HTML content; acquiring the part of the HTML contentaccording to the special parameter; and outputting the acquired part ofthe HTML content.

According to an embodiment of the disclosure, there is provided a systemfor reusing HTML content. The system includes a processor programmed toinitiate executable operations. The executable operations includereceiving an HTTP request; determining that the received HTTP requesthas a special parameter that specifies to request part of the HTMLcontent; acquiring the part of the HTML content according to the specialparameter; and outputting the acquired part of the HTML content.

According to an embodiment of the disclosure, there is provided acomputer program product for reusing HyperText Markup Language (HTML)content. The computer program product includes a computer readablestorage medium having program code embodied therewith. The program codeis executable by a processor to perform a method. The method includesreceiving, using the processor, a HyperText Transfer Protocol (HTTP)request; determining, using the processor, that the received HTTPrequest has a special parameter that specifies to request part of theHTML content; and acquiring, using the processor, the part of the HTMLcontent according to the special parameter. The acquired part of theHTML content is output using the processor.

BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS

The disclosure may be better understood by referencing the followingdescription given in conjunction with accompany drawings, in which sameor similar reference number represents same or similar part throughoutthe drawings. The drawings are included in the description along withthe following detailed description and constituted a part thereof, andare further used to illustrate preferred embodiments of the disclosureand explain principle and advantages of the disclosure, in which:

FIG. 1 shows a block diagram of an illustrative computing system adaptedto implement an embodiment of the disclosure;

FIG. 2 shows a flowchart of a method for reusing HTML content accordingto an embodiment of the disclosure; and

FIG. 3 shows a block diagram of a system for reusing HTML contentaccording to an embodiment of the disclosure.

DETAILED DESCRIPTION

The embodiments of the invention relate to internet informationprocessing and, more particularly, to reusing HyperText Markup Language(HTML) content.

The above defects in the art have been recognized in exemplaryembodiments of the disclosure. Thus, the disclosure provides a technicalsolution that overcomes one or more of the above defects in the art.

Embodiments of the disclosure will be described below in conjunctionwith accompany drawings.

The terminology used herein is for the purpose of describing particularembodiments only and is not intended to be limiting of the invention. Asused herein, the singular forms “a”, “an” and “the” are intended toinclude the plural forms as well, unless the context clearly indicatesotherwise. It will be further understood that the terms “comprises”and/or “comprising,” when used in this specification, specify thepresence of stated features, integers, steps, operations, elements,and/or components, but do not preclude the presence or addition of oneor more other features, integers, steps, operations, elements,components, and/or groups thereof.

The corresponding structures, materials, acts, and equivalents of allmeans or step plus function elements in the claims below are intended toinclude any structure, material, or act for performing the function incombination with other claimed elements as specifically claimed. Thedescription of the present invention has been presented for purposes ofillustration and description, but is not intended to be exhaustive orlimited to the invention in the form disclosed. Many modifications andvariations will be apparent to those of ordinary skill in the artwithout departing from the scope and spirit of the invention. Theembodiment was chosen and described in order to best explain theprinciples of the invention and the practical application, and to enableothers of ordinary skill in the art to understand the invention forvarious embodiments with various modifications as are suited to theparticular use contemplated.

FIG. 1 shows a block diagram of an illustrative computer system 100adapted to implement an embodiment of the disclosure. As shown, thecomputer system 100 may include: CPU (central processing unit) 101, RAM(random access memory) 102, ROM (read only memory) 103, system bus 104,hard disk controller 105, keyboard controller 106, serial interfacecontroller 107, parallel interface controller 108, display controller109, hard disk 110, keyboard 111, serial external device 112, parallelexternal device 113 and display 114. In these devices, system bus 104 iscoupled with CPU 101, RAM 102, ROM 103, hard disk controller 105,keyboard controller 106, serial interface controller 107, parallelinterface controller 108, and display controller 109. Hard disk 110 iscoupled with hard disk controller 105, keyboard 111 is coupled withkeyboard controller 106, serial external device 112 is coupled withserial interface controller 107, parallel external device 113 is coupledwith parallel interface controller 108, and display 114 is coupled withdisplay controller 109. It should be appreciated that, the structuralblock diagram depicted in FIG. 1 is merely for purposes of illustration,not for limiting the scope of the invention. In some circumstances, somedevices may be added or removed as needed.

Now referring to FIG. 2, in which a flowchart of a method 200 forreusing HTML content according to an embodiment of the disclosure isshown. The method 200 starts with step 202.

Next, the method 200 proceeds to step 204, where a HyperText TransferProtocol (HTTP) request is received. An HTTP request sent from a browserat client side may be received by a server. The browser at client sidemay be any browser known in the art, such as, Microsoft® InternetExplorer®, Apple® Safari® and so on.

Next, the method 200 proceeds to step 206, where it is determined thatthe received HTTP request has a special parameter that specifies torequest part of the HTML content. According to an embodiment of thedisclosure, the special parameter that may exist in the received HTTPrequest that specifies to request part of the HTML content includes DOMnode identifier, that is, the HTTP request does not request the entirepage, rather, it requests HTML content corresponding to the DOM nodeidentifier in the special parameter. According to an embodiment of thedisclosure, the special parameter that may exist in the received HTTPrequest that specifies to request part of the HTML content also includesXPath, that is, the HTTP request does not request the entire page,rather, it requests HTML content corresponding to the DOM nodeidentifier and XPath in the special parameter. It is appreciated bythose skilled in the art that, any other manners in the art may be usedto specify the requested part of the HTML content, and they will not bedescribed respectively.

Next, the method 200 proceeds to step 208, where the part of the HTMLcontent is acquired according to the special parameter. According to anembodiment of the disclosure, after DOM node identifier included in thespecial parameter is acquired, corresponding part of the HTML contentmay be acquired according to the acquired DOM node identifier. Accordingto an embodiment of the disclosure, after DOM node identifier and XPathincluded in the special parameter are acquired, corresponding part ofthe HTML content may be acquired according to the acquired DOM nodeidentifier and XPath. The DOM node identifier and XPath included in thespecial parameter may be acquired by parsing the received HTTP request.

Next, the method 200 proceeds to step 210, where the acquired part ofthe HTML content is outputted.

It will be described below in conjunction with detailed example. It isappreciated that, various limitations added below are merely forillustration, rather than for limiting the protection scope of claims.

First, the following HTTP request is received, for example:

-   -   http://w3.ibm.com/index.html?partial_domNodeIDs=hotLinksDiv

By parsing this HTTP request, it is determined that it contains thereina special parameter that specifies to request part of the HTML content,i.e., partial_domNodeIDs=hotLinksDiv. Then, by parsing this HTTPrequest, DOM node identifier included in the special parameter isacquired, i.e. domNodeIDs=hotLinksDiv, that is, DOM node whose nodeidentifier is hotLinksDiv. Then, corresponding part of the HTML contentis acquired according to the DOM node identifier; in particular, DOMnode tree structure of the entire static page may be acquired accordingto w3.ibm.com/index.html first. For example, page content is as follows:

<html> <head> // content of head </head> <body> <div id=“section1”> //contents of div </div> <div id=“hotLinksDiv”> //contents <divid=“childdiv”> // contents of child div </div> <table id=“childtable”>// contents of child table </table> </div> <div id=“section2”> </div> //contents of other dom nodes </body> </html>

Location where the DOM node resides and its corresponding type (such as,div, table and so on) are acquired by scanning the entire page contentaccording to the acquired DOM node identifier domNodeIDs=hotLinksDiv. Inthe above example, the DOM node is at position where underline is shown,and its corresponding type is div.

Further, start position and end position of the node are determinedaccording to the acquired position where the DOM node is and itscorresponding type. They are indicated by bold in the above example.

Then, content between the start position and end position of the node isacquired as part of the HTML content requested by the HTTP request. Inthe above example, it is the following codes:

<div id=“hotLinksDiv”> //contents <div id=“childdiv”> // contents ofchild div </div> <table id=“childtable”> // contents of child table</table> </div>

According to an embodiment of the disclosure, the part of the HTMLcontent may include cascading style sheet(s) (CSS), and acquiring thepart of the HTML content according to the special parameter furtherincludes: acquiring DOM node identifier included in the specialparameter; acquiring CSS content corresponding to the DOM nodeidentifier included in the special parameter; transforming the acquiredCSS content into direct style attribute of corresponding HTML element;applying the transformed direct style attribute of the HTML element tothe part of the HTML content corresponding to the acquired DOM nodeidentifier. The above procedure will be described below in conjunctionwith detailed example.

The above procedure will be described by taking the following pagecontent as an example.

<html>  <head>  <style> #div1{  background-color: red; }  #div2{background-color: green; }  </style>  </head>  <body> <div id = “div1”>content of div1 </div>  <div id = “div2”> content of div2 </div> </body> </html>

First, DOM node identifier included in the special parameter isacquired, here, it is assumed that the DOM node identifier included inthe special parameter is div1. Then, CSS content related to HTML contentis acquired by scanning page content. It may be seen that, CSS contentcorresponding to DOM node whose node identifier is div1 is shown byunderlined portion.

<style>  #div1{ background-color: red;  }  #div2{  background-color:green;  } </style>

Then, the acquired CSS content is transformed into direct styleattribute of corresponding HTML element. In the above example, thetransformed direct style attribute of corresponding HTML element at theabove underlined portion is background-color: red;

Finally, the transformed direct style attribute of HTML element isapplied to the part of the HTML content corresponding to the acquiredDOM node identifier. In the above example, after the transformed directstyle attribute “background-color: red” of corresponding HTML element isapplied to the part of the HTML content corresponding to the DOM nodewhose node identifier is div1, the result is shown as follows.

<div id = “div1” style=“background-color: red;”>  content of div1 </div>

According to an embodiment of the disclosure, the part of the HTMLcontent may include JavaScript, and acquiring the part of the HTMLcontent according to the special parameter further includes: acquiringDOM node identifier included in the special parameter; acquiring acorresponding JavaScript method list according to the acquired DOM nodeidentifier; acquiring invocation path of JavaScript according toJavaScript method list. First, corresponding DOM node may be acquiredaccording to the acquired DOM node identifier and a JavaScript methodlist registered on that DOM is acquired. Then, starting from theacquired JavaScript method list, invocation path of JavaScript isacquired. The invocation path of JavaScript includes all JavaScriptmethod lists on the invocation path starting from the acquiredJavaScript method list and all DOM nodes related to these JavaScriptmethods. The above procedure will be described below in conjunction withdetailed example.

Generally, there are two manners to register an event with DOM node:

(1) writing the event directly into attribute of the DOM node, forexample:

<button id=“btn1” onclick=“fun1( )”></button>

(2) writing the event into the DOM node by using JavaScript, forexample:

<button id=“btn1”> </button> <script> document.getElementById(‘btn1’).onclick = func1; </script>

First, DOM node identifier included in the special parameter isacquired. According to an embodiment of the disclosure, an eventregistered in the first manner may be acquired according to the acquiredDOM node identifier, and a JavaScript method list 1 directly writteninto attribute of DOM node is further acquired. According to anembodiment of the disclosure, an event registered in the second mannermay be acquired according to the acquired DOM node identifier, and aJavaScript method list 2 written by JavaScript method invocation isfurther acquired. According to an embodiment of the disclosure, acompleted initial JavaScript method list may be obtained by combiningthe method list 1 and the method list 2. It should be appreciated that,there may only exist method list 1 or method list 2, or both of them mayexist.

Next, invocation path of JavaScript is acquired according to theJavaScript method list. Take the following JavaScript for example.Assuming that fun1( ) is included in JavaScript method list obtainedaccording to the acquired DOM node identifier, then starting from fun1() the invocation path of JavaScript is acquired. It may be seen that,fun1( ) invokes fun2( ) while fun2( ) does not invoke any other method.Further, for each method fun1( ) and fun2( ) DOM nodes related to eachmethod are acquired. That is, the invocation path of JavaScript includesall JavaScript method lists and all related DOM nodes. As for the aboveexample, the acquired invocation path of JavaScript includes JavaScriptmethod fun1( ) and JavaScript method fun2( ) and all DOM nodes relatedto fun1( ) and fun2( ).

<script>  function fun1( ){var dom1 =document.getElementById(‘otherDiv’).previousSibling;  dom1.innerHTML =‘new content’;  fun2( );  }  function fun2( ){  } </script>

According to an embodiment of the disclosure, dependency in theinvocation path of JavaScript may be verified according to the acquiredDOM node identifier, wherein dependency refers to whether the requestedpart of the HTML content depends on the un-requested part of the HTMLcontent; and the verified JavaScript is outputted. Take following pagecontent for example.

Assuming that there is HTTP request 1 and HTTP request 2 for thefollowing page content respectively, wherein special parameter in HTTPrequest 1 includes DOM node identifier targetDiv1, and special parameterin HTTP request 2 includes DOM node identifier targetDiv2.

<html>  <body> <div id=“targetDiv1” onmouseover=“fun1( );”> This is thecontent for reuse. </div>  <div id=“otherDiv”></div>  </body>  <script> function fun1( ){ var dom1 =document.getElementById(‘otherDiv’).previousSibling;  dom1.innerHTML =‘new content’; } </script> <div id=“targetDiv2” onmouseover=“fun2( );”>This is the content for reuse. </div> <div id=“otherDiv2”></div> <script>  function fun2( ){ var otherDomNode =document.getElementById('otherDiv'); otherDomNode.innerHTML = ‘newcontent’;  }  </script> </html>

First, for HTTP request 1, corresponding invocation path of JavaScriptfunc1( ) and its related DOM node document.body are obtained accordingto node identifier targetDiv1. Then, when verifying that invocation pathof JavaScript by using the node identifier targetDiv1, it is found thatthe related DOM node document.body is just used to locate itself, thatis, fun1( ) does not depend on un-requested part of the HTML content andthus it can pass verification. Then, the verified JavaScript isoutputted, namely,

<div id=“targetDiv1” onmouseover=“fun1( );”> This is the content forreuse. </div>  <div id=“otherDiv”></div>  <script> function fun1( ){ vardom1 = document.getElementById(‘otherDiv’).previousSibling;dom1.innerHTML =‘new content’; } </script>

Then, for HTTP request 2, corresponding invocation path of JavaScriptfunc2( ) and its related DOM node otherDiv are obtained according to thenode identifier targetDiv2. Then, when verifying that invocation path ofJavaScript by using the node identifier targetDiv2, it is found that therelated DOM node with identifier otherDiv belongs to un-requested partof the HTML content, that is, fun2( ) depends on un-requested part ofthe HTML content and thus it cannot pass verification. Alternatively,for the invocation path of JavaScript that cannot pass verification, analert may be returned to user, prompting to the user that this part ofthe HTML content cannot be reused separately.

Now referring to FIG. 3, a block diagram of a system 300 for reusingHTML content according to an embodiment of the disclosure is shown. Thesystem 300 includes: a receiving unit 302 configured to receive a HTTPrequest; a determining unit 304 configured to determine that thereceived HTTP request has a special parameter that specifies to requestpart of the HTML content; an acquiring unit 306 configured to acquirethe part of the HTML content according to the special parameter; anoutputting unit 308 configured to output the acquired part of the HTMLcontent.

According to an embodiment of the disclosure, the special parameter mayinclude DOM node identifier, wherein, the acquiring unit is furtherconfigured to: acquire a DOM node identifier included in the specialparameter; and acquire corresponding part of the HTML content accordingto the acquired DOM node identifier. According to an embodiment of thedisclosure, the special parameter may include XPath, wherein, theacquiring unit is further configured to: acquire a DOM node identifierand an XPath included in the special parameter; acquire correspondingpart of the HTML content according to the acquired DOM node identifierand XPath.

According to an embodiment of the disclosure, the part of the HTMLcontent includes CSS, the acquiring unit is further configured to:acquire a DOM node identifier included in the special parameter; acquireCSS content corresponding to the DOM node identifier included in thespecial parameter; transform the acquired CSS content into direct styleattribute of corresponding HTML element; apply the transformed directstyle attribute of the HTML element to the part of the HTML contentcorresponding to the acquired DOM node identifier.

According to an embodiment of the disclosure, the part of the HTMLcontent includes JavaScript, the acquiring unit is further configuredto: acquire a DOM node identifier included in the special parameter;acquire a corresponding JavaScript method list according to the acquiredDOM node identifier; acquire invocation path of JavaScript according tothe JavaScript method list.

According to an embodiment of the disclosure, the system 300 furtherincludes a verifying unit (not shown) configured to verify dependency inthe invocation path of JavaScript according to the acquired DOM nodeidentifier, wherein dependency refers to whether the requested part ofthe HTML content depends on the un-requested part of the HTML content.

According to an embodiment of the disclosure, the outputting unit isfurther configured to output the verified JavaScript.

With the above one or more embodiments of the disclosure, it is possibleto reuse resources in case that provider of the resources has notprovided a common API. Meanwhile, since there is no need to provide acommon API, provider of the resources may also save cost.

The method and system according to embodiments of the disclosure havebeen described in detail above. The flowchart and block diagrams in theFigures illustrate the architecture, functionality, and operation ofpossible implementations of systems, methods and computer programproducts according to various embodiments of the present invention. Inthis regard, each block in the flowchart or block diagrams may representa module, segment, or portion of code, which includes one or moreexecutable instructions for implementing the specified logicalfunction(s). It should also be noted that, in some alternativeimplementations, the functions noted in the block may occur out of theorder noted in the figures. For example, two blocks shown in successionmay, in fact, be executed substantially concurrently, or the blocks maysometimes be executed in the reverse order, depending upon thefunctionality involved. It will also be noted that each block of theblock diagrams and/or flowchart illustration, and combinations of blocksin the block diagrams and/or flowchart illustration, can be implementedby special purpose hardware-based systems that perform the specifiedfunctions or acts, or combinations of special purpose hardware andcomputer instructions.

As will be appreciated by one skilled in the art, the present inventionmay be embodied as a system, method or computer program product.Accordingly, the present invention may take the form of an entirelyhardware embodiment, an entirely software embodiment (includingfirmware, resident software, micro-code, etc.) or an embodimentcombining software and hardware aspects that may all generally bereferred to herein as a “circuit,” “module” or “system.” Furthermore,the present invention may take the form of a computer program productembodied in any tangible medium of expression having computer-usableprogram code embodied in the medium.

Any combination of one or more computer usable or computer readablemedium(s) may be utilized. The computer-usable or computer-readablemedium may be, for example but not limited to, an electronic, magnetic,optical, electromagnetic, infrared, or semiconductor system, apparatus,device, or any combination thereof. More specific examples (anon-exhaustive list) of the computer-readable medium would include thefollowing: an electrical connection having one or more wires, a portablecomputer diskette, a hard disk, a random access memory (RAM), aread-only memory (ROM), an erasable programmable read-only memory (EPROMor Flash memory), an optical fiber, a portable compact disc read-onlymemory (CDROM), an optical storage device, a magnetic storage device, orany suitable combination thereof. In the context of this document, acomputer-readable medium may be any tangible medium that can contain,store the program for use by or in connection with the instructionexecution system, apparatus, or device.

A computer readable signal medium may include a propagated data signalwith computer readable program code embodied therein, for example, inbaseband or as part of a carrier wave. Such a propagated signal may takeany of a variety of forms, including, but not limited to,electro-magnetic, optical, or any suitable combination thereof. Acomputer readable signal medium may be any computer readable medium thatis not a computer readable storage medium and that can communicate,propagate, or transport a program for use by or in connection with aninstruction execution system, apparatus, or device. Program codeembodied on a computer readable medium may be transmitted using anyappropriate medium, including but not limited to wireless, wired,optical fiber cable, RF, etc., or any suitable combination of theforegoing.

Computer program code for carrying out operations of the disclosure maybe written in any combination of one or more programming languages,including an object oriented programming language such as Java,Smalltalk, C++ or the like and conventional procedural programminglanguages, such as the “C” programming language or similar programminglanguages. The program code may execute entirely on the user's computer,partly on the user's computer, as a stand-alone software package, partlyon the user's computer and partly on a remote computer or entirely onthe remote computer or server. In the latter scenario, the remotecomputer may be connected to the user's computer through any type ofnetwork, including a local area network (LAN) or a wide area network(WAN), or the connection may be made to an external computer (forexample, through the Internet using an Internet Service Provider).

Aspects of the disclosure are described below with reference toflowchart illustrations and/or block diagrams of methods, apparatus(systems) and computer program products according to embodiments of thedisclosure. It will be understood that each block of the flowchartillustrations and/or block diagrams, and combinations of blocks in theflowchart illustrations and/or block diagrams, can be implemented bycomputer program instructions. These computer program instructions maybe provided to a processor of a general purpose computer, specialpurpose computer, or other programmable data processing apparatus toproduce a machine, such that the instructions, which execute via theprocessor of the computer or other programmable data processingapparatus, create means for implementing the functions/acts specified inthe flowchart and/or block diagram block or blocks.

These computer program instructions may also be stored in a computerreadable medium that can direct a computer, other programmable dataprocessing apparatus, or other devices to function in a particularmanner, such that the instructions stored in the computer readablemedium produce an article of manufacture including instructions whichimplement the function/act specified in the flowchart and/or blockdiagram block or blocks.

The computer program instructions may also be loaded onto a computer,other programmable data processing apparatus, or other devices to causea series of operational steps to be performed on the computer, otherprogrammable apparatus or other devices to produce a computerimplemented process such that the instructions which execute on thecomputer or other programmable apparatus provide processes forimplementing the functions/acts specified in the flowchart and/or blockdiagram block or blocks.

It is to be noted that, in the apparatus and method of the disclosure,respective components and steps can be decomposed and/or recombined.Such decomposition and/or recombination should be considered asequivalent solution of the disclosure. Further, steps for carrying outthe above series of processes may be performed according the mentionedorder naturally in time sequence, but not necessarily in time sequence.Some steps may be performed in parallel or independently with eachother.

Although the disclosure and its advantages have been described indetail, it should be appreciated that various modifications,replacements and changes may be made without departing from the spiritand scope defined by the appended claims. Further, the terms“including”, “containing” or any other variants are intended toencompass non-exclusive inclusion, such that process, method, object ormeans containing a series of elements include not only those elements,but also other elements not explicitly listed, or elements that areinherent to the process, method, object or means. Without furtherlimitation, an element that is defined by phrase “including a . . . ”does not exclude that same additional element also exists in theprocess, method, object or means that contain that element.

What is claimed is:
 1. A method for reusing HyperText Markup Language(HTML) content, comprising: receiving a HyperText Transfer Protocol(HTTP) request including a special parameter that: includes a DOM nodeidentifier and specifies to request part of the HTML content; acquiring,based upon the special parameter, the part of the HTML content accordingto the special parameter; and outputting the acquired part of the HTMLcontent, wherein the HTTP request does not request an entire page, andthe DOM node identifier of the HTTP request does not identify an entirepage, wherein the part of the HTML, content includes JavaScript, acorresponding JavaScript method list is acquired based upon the DOM nodeidentifier, and an invocation path of JavaScript is acquired based uponthe JavaScript method list.
 2. The method of claim 1, wherein the partof the HTML content is acquired based upon the DOM node identifier. 3.The method of claim 1, wherein the special parameter further includesXPath.
 4. The method of claim 3, wherein the part of the HTML content isacquired based upon the DOM node identifier and the XPath.
 5. A computerhardware system configured to reuse HyperText Markup Language (HTML)content, comprising: a hardware processor configured to initiate thefollow operations: receiving a HyperText Transfer Protocol (HTTP)request including a special parameter that: includes a DOM nodeidentifier and specifies to request part of the HTML content; acquiring,based upon the special parameter, the part of the HTML content accordingto the special parameter; and outputting the acquired part of the HTMLcontent, wherein the HTTP request does not request an entire page, andthe DOM node identifier of the HTTP request does not identify an entirepage, wherein the part of the HTML content includes JavaScript, acorresponding JavaScript method list is acquired based upon the DOM nodeidentifier, and an invocation path of JavaScript is acquired based uponthe JavaScript method list.
 6. The system of claim 5, wherein the partof the HTML content is acquired based upon the DOM node identifier. 7.The system of claim 5, wherein the special parameter further includesXPath.
 8. The system of claim 7, wherein the part of the HTML content isacquired based upon the DOM node identifier and the XPath.
 9. A computerprogram product for reusing HyperText Markup Language (HTML) content,comprising: a computer readable hardware storage device having programcode stored therein, the program code, which when executed by a computerhardware system, causes the computer hardware system to perform:receiving a HyperText Transfer Protocol (HTTP) request including aspecial parameter that: includes a DOM node identifier and specifies torequest part of the HTML content; acquiring, based upon the specialparameter, the part of the HTML content according to the specialparameter; and outputting the acquired part of the HTML content, whereinthe HTTP request does not request an entire page, and the DOM nodeidentifier of the HTTP request does not identify an entire page, whereinthe part of the HTML content includes JavaScript, a correspondingJavaScript method list is acquired based upon the DOM node identifier,and an invocation path of JavaScript is acquired based upon theJavaScript method list.
 10. The computer program product of claim 9,wherein the part of the HTML content is acquired based upon the DOM nodeidentifier.
 11. The computer program product of claim 9, wherein thespecial parameter further includes XPath.
 12. The computer programproduct of claim 11, wherein the part of the HTML content is acquiredbased upon the DOM node identifier and the XPath.